import java.io.FileNotFoundException;

public class Main {
    public static void main(String[] args) {
        try {
            var loader = new LoadProperties(Main.class);
            loader.load(Main.class.getResource("student.prop"));
            System.out.println(loader.get(Student.class));
        } catch (FileNotFoundException e) {
            System.err.println(e.getMessage());
        }
    }
}